package cn.jsp.spring.listener;

import jakarta.servlet.annotation.WebListener;
import jakarta.servlet.http.HttpSessionAttributeListener;
import jakarta.servlet.http.HttpSessionBindingEvent;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@WebListener
public class SessionAttrLogListener implements HttpSessionAttributeListener {

  @Override
  public void attributeAdded(HttpSessionBindingEvent event) {
    log.debug("new attr:{}-{}",event.getName(),event.getValue());
  }
}
